package com.victualler.core.config.permission.entity;

import com.victualler.core.base.dao.BaseDao;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Aouthor Guoshichang
 * @Date 14:07 on 2018/7/4.
 * @Function 角色权限表
 */
@Entity
@Table(name="common_role_permission")
public class RolePermissionInfoDao extends BaseDao implements Serializable {
    //角色id
    private Long roleId;
    //权限id
    private Long permissionId;

    public RolePermissionInfoDao(Long roleId, Long permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }

    public RolePermissionInfoDao() {
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Long permissionId) {
        this.permissionId = permissionId;
    }
}
